﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using RayDen.SceneLab.UI;

namespace RayDen.SceneLab.Controllers.FormControllers
{
    public class AppSettingsFormController : FormControllerBase<ApplicationSettingsForm>
    {
        public AppSettingsFormController(Form owner) : base(owner)
        {
        }


        public void SaveConfiguration()
        {
            ApplicationContext.Instance.Config.RayEngineConfiguration.SaveConfig(
                Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location) +
                "\\Global.Config.xml");
        }
    }
}
